﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Music_Organizer
{
    public partial class ProgressBarWindow : Form
    {        
        public ProgressBarWindow()
        {
            InitializeComponent();
        }

        public void Reset()
        {
            progressBar1.Value = 0;
            label1.Text = "Initializing";
        }

        private void ProgressBarWindow_FormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e) //Event that occurs when the window closes.
        {

        }
        
        private void cancelButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        public string Title
        {
            get { return this.Title; }
            set { this.Text = value;}
        }

        public int Value
        {
            get { return progressBar1.Value; }
            set { progressBar1.Value = value; }
        }

        public string Task
        {
            get { return label1.Text; }
            set { label1.Text = value; }
        }

        public ProgressBarStyle Style
        {
            set { progressBar1.Style = value; }
        }
    }
}
